import request from "@/utils/request";
// banner管理
export function queryBanner(data) {
  return request({
    url: "/cms/banner/list",
    method: "get",
    params: data
  });
}
export function addBanner(query) {
  return request({
    url: "/cms/banner",
    method: "post",
    data: query
  });
}
export function updateBanner(data) {
  return request({
    url: "/cms/banner",
    method: "put",
    data: data
  });
}
export function delBanner(ids) {
  return request({
    url: `/cms/banner/${ids}`,
    method: "delete"
  });
}

// 模块管理
export function queryModule(data) {
  return request({
    url: "/cms/manage/list",
    method: "get",
    params: data
  });
}
export function addModule(query) {
  return request({
    url: "/cms/manage",
    method: "post",
    data: query
  });
}
export function updateModule(data) {
  return request({
    url: "/cms/manage",
    method: "put",
    data: data
  });
}
export function delModule(ids) {
  return request({
    url: `/cms/manage/${ids}`,
    method: "delete"
  });
}

// 意见反馈
export function queryFeedback (data) {
  return request({
    url: '/cms/feedback/list',
    method: "get",
    params: data
  })
}
export function addFeedback (query) {
  return request({
    url: '/cms/feedback',
    method: "post",
    data: query
  })
}
export function updateFeedback (query) {
  return request({
    url: '/cms/feedback',
    method: "put",
    data: query
  })
}
export function delFeedback (ids) {
  return request({
    url: `/cms/feedback/${ids}`,
    method: "delete"
  })
}

// 公司信息
export function queryCompanyInfo (data) {
  return request({
    url: '/cms/company/list',
    method: "get",
    params: data
  })
}
export function addCompanyInfo (query) {
  return request({
    url: '/cms/company',
    method: "post",
    data: query
  })
}
export function updateCompanyInfo (query) {
  return request({
    url: '/cms/company',
    method: "put",
    data: query
  })
}

// 资讯百科分类
export function queryNewsCate (data) {
  return request({
    url: '/mbacms/label/list',
    method: "get",
    params: data
  })
}
export function addNewsCate (query) {
  return request({
    url: '/cms/information/classify',
    method: "post",
    data: query
  })
}
export function updateNewsCate (query) {
  return request({
    url: '/cms/information/classify',
    method: "put",
    data: query
  })
}
export function delNewsCate (ids) {
  return request({
    url: `/cms/information/classify/${ids}`,
    method: "delete"
  })
}

// 资讯百科
export function queryNews (data) {
  return request({
    url: '/mbacms/teachers/manage/list',
    method: "get",
    params: data
  })
}
export function addNews (query) {
  return request({
    url: '/cms/information',
    method: "post",
    data: query
  })
}
export function updateNews (query) {
  return request({
    url: '/cms/information',
    method: "put",
    data: query
  })
}
export function delNews (ids) {
  return request({
    url: `/cms/information/${ids}`,
    method: "delete"
  })
}

// 招聘信息
export function queryEmployment (data) {
  return request({
    url: '/cms/employment/list',
    method: 'get',
    params: data
  })
}
export function addEmployment (query) {
  return request({
    url: '/cms/employment',
    method: "post",
    data: query
  })
}
export function updateEmployment (query) {
  return request({
    url: '/cms/employment',
    method: "put",
    data: query
  })
}
export function delEmployment (ids) {
  return request({
    url: `/cms/employment/${ids}`,
    method: "delete"
  })
}

// 留言信息
export function queryUser (data) {
  return request({
    url: '/cms/employment/user/list',
    method: 'get',
    params: data
  })
}
export function delUser (ids) {
  return request({
    url: `/cms/employment/user/${ids}`,
    method: "delete"
  })
}